//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LiveBarrage implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Integer state;
    private Long createTime;
    private Long createUser;
    private String content;
    /**
     * 1:普通弹幕
     * 2:表情弹幕
     * 3:礼物弹幕
     * 4:
     * 5:问题弹幕
     */
    private Integer type;
    @TableField(
            exist = false
    )
    private String userName;
    @TableField(
            exist = false
    )
    private Integer addCount;
    @TableField(
            exist = false
    )
    private Integer level;
    @TableField(
            exist = false
    )
    private Integer stayTime;
    private Long productId;
    private Integer orders;

    public LiveBarrage() {
    }

    public Long getId() {
        return this.id;
    }

    public Integer getState() {
        return this.state;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public Long getCreateUser() {
        return this.createUser;
    }

    public String getContent() {
        return this.content;
    }

    public Integer getType() {
        return this.type;
    }

    public String getUserName() {
        return this.userName;
    }

    public Integer getAddCount() {
        return this.addCount;
    }

    public Integer getLevel() {
        return this.level;
    }

    public Integer getStayTime() {
        return this.stayTime;
    }

    public Long getProductId() {
        return this.productId;
    }

    public Integer getOrders() {
        return this.orders;
    }

    public LiveBarrage setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveBarrage setState(final Integer state) {
        this.state = state;
        return this;
    }

    public LiveBarrage setCreateTime(final Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public LiveBarrage setCreateUser(final Long createUser) {
        this.createUser = createUser;
        return this;
    }

    public LiveBarrage setContent(final String content) {
        this.content = content;
        return this;
    }

    public LiveBarrage setType(final Integer type) {
        this.type = type;
        return this;
    }

    public LiveBarrage setUserName(final String userName) {
        this.userName = userName;
        return this;
    }

    public LiveBarrage setAddCount(final Integer addCount) {
        this.addCount = addCount;
        return this;
    }

    public LiveBarrage setLevel(final Integer level) {
        this.level = level;
        return this;
    }

    public LiveBarrage setStayTime(final Integer stayTime) {
        this.stayTime = stayTime;
        return this;
    }

    public LiveBarrage setProductId(final Long productId) {
        this.productId = productId;
        return this;
    }

    public LiveBarrage setOrders(final Integer orders) {
        this.orders = orders;
        return this;
    }

    public String toString() {
        return "LiveBarrage(id=" + this.getId() + ", state=" + this.getState() + ", createTime=" + this.getCreateTime() + ", createUser=" + this.getCreateUser() + ", content=" + this.getContent() + ", type=" + this.getType() + ", userName=" + this.getUserName() + ", addCount=" + this.getAddCount() + ", level=" + this.getLevel() + ", stayTime=" + this.getStayTime() + ", productId=" + this.getProductId() + ", orders=" + this.getOrders() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveBarrage)) {
            return false;
        } else {
            LiveBarrage other = (LiveBarrage)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label155: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label155;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label155;
                    }

                    return false;
                }

                Object this$state = this.getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }

                Object this$createTime = this.getCreateTime();
                Object other$createTime = other.getCreateTime();
                if (this$createTime == null) {
                    if (other$createTime != null) {
                        return false;
                    }
                } else if (!this$createTime.equals(other$createTime)) {
                    return false;
                }

                label134: {
                    Object this$createUser = this.getCreateUser();
                    Object other$createUser = other.getCreateUser();
                    if (this$createUser == null) {
                        if (other$createUser == null) {
                            break label134;
                        }
                    } else if (this$createUser.equals(other$createUser)) {
                        break label134;
                    }

                    return false;
                }

                label127: {
                    Object this$content = this.getContent();
                    Object other$content = other.getContent();
                    if (this$content == null) {
                        if (other$content == null) {
                            break label127;
                        }
                    } else if (this$content.equals(other$content)) {
                        break label127;
                    }

                    return false;
                }

                label120: {
                    Object this$type = this.getType();
                    Object other$type = other.getType();
                    if (this$type == null) {
                        if (other$type == null) {
                            break label120;
                        }
                    } else if (this$type.equals(other$type)) {
                        break label120;
                    }

                    return false;
                }

                Object this$userName = this.getUserName();
                Object other$userName = other.getUserName();
                if (this$userName == null) {
                    if (other$userName != null) {
                        return false;
                    }
                } else if (!this$userName.equals(other$userName)) {
                    return false;
                }

                label106: {
                    Object this$addCount = this.getAddCount();
                    Object other$addCount = other.getAddCount();
                    if (this$addCount == null) {
                        if (other$addCount == null) {
                            break label106;
                        }
                    } else if (this$addCount.equals(other$addCount)) {
                        break label106;
                    }

                    return false;
                }

                Object this$level = this.getLevel();
                Object other$level = other.getLevel();
                if (this$level == null) {
                    if (other$level != null) {
                        return false;
                    }
                } else if (!this$level.equals(other$level)) {
                    return false;
                }

                label92: {
                    Object this$stayTime = this.getStayTime();
                    Object other$stayTime = other.getStayTime();
                    if (this$stayTime == null) {
                        if (other$stayTime == null) {
                            break label92;
                        }
                    } else if (this$stayTime.equals(other$stayTime)) {
                        break label92;
                    }

                    return false;
                }

                Object this$productId = this.getProductId();
                Object other$productId = other.getProductId();
                if (this$productId == null) {
                    if (other$productId != null) {
                        return false;
                    }
                } else if (!this$productId.equals(other$productId)) {
                    return false;
                }

                Object this$orders = this.getOrders();
                Object other$orders = other.getOrders();
                if (this$orders == null) {
                    if (other$orders != null) {
                        return false;
                    }
                } else if (!this$orders.equals(other$orders)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveBarrage;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $createTime = this.getCreateTime();
        result1 = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $createUser = this.getCreateUser();
        result1 = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
        Object $content = this.getContent();
        result1 = result * 59 + ($content == null ? 43 : $content.hashCode());
        Object $type = this.getType();
        result1 = result * 59 + ($type == null ? 43 : $type.hashCode());
        Object $userName = this.getUserName();
        result1 = result * 59 + ($userName == null ? 43 : $userName.hashCode());
        Object $addCount = this.getAddCount();
        result1 = result * 59 + ($addCount == null ? 43 : $addCount.hashCode());
        Object $level = this.getLevel();
        result1 = result * 59 + ($level == null ? 43 : $level.hashCode());
        Object $stayTime = this.getStayTime();
        result1 = result * 59 + ($stayTime == null ? 43 : $stayTime.hashCode());
        Object $productId = this.getProductId();
        result1 = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        Object $orders = this.getOrders();
        result1 = result * 59 + ($orders == null ? 43 : $orders.hashCode());
        return result1;
    }
}
